package org.example;

import javax.swing.*;
import java.util.Scanner;

public class jave09 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入成绩");
        int grade = sc.nextInt();
        if (grade >= 0 && grade <= 100)
            if (grade >= 90) {
                System.out.println("成绩不小于90");
            } else if (grade >= 80 && grade < 90) {
                System.out.println("成绩在80~90");
            } else if (grade >= 60 && grade < 80) {
                System.out.println("成绩在60~80");
            } else {
                System.out.println("成绩不合格");
            }
        else{
                System.out.println("成绩输入无效");
            }
        }
    }
